from django.db import models

# Create your models here.
class Developer(models.Model):
    parent = models.ForeignKey('self', null=True, blank=True);
    name = models.CharField(max_length=30);
    #jobs = models.ManyToManyField(Job);
    #publisher = models.ForeignKey(Publisher)
def __unicode__(self):
    return self.name

class Job(models.Model):
    parent = models.ForeignKey('self', null=True, blank=True);
    name = models.CharField(max_length=30);
    #parent = models.ForeignKey('self')
    developers = models.ManyToManyField(Developer, blank=True);
    #authors = models.ManyToManyField(Author)
    #publisher = models.ForeignKey(Publisher)
def __unicode__(self):
    return self.name

